package com.aliyun.messagemgt.dto.excel;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class BaseMessageSourceExcel {

    @ExcelIgnore
    private Long id;

    @ExcelIgnore
    private String tenantCode;

    @ExcelProperty(value = "消息源编码")
    private String sourceCode;

    @ExcelProperty(value = "消息源名称")
    private String sourceName;

    @ExcelProperty(value = "消息源类型 WORK_FLOW：工作流 APP：应用")
    private String sourceType;

    @ExcelProperty(value = "场景编码(不可重复)")
    private String sceneCode;

    @ExcelProperty(value = "场景名称")
    private String sceneName;

    @ExcelProperty(value = "场景描述")
    private String sceneDescription;

    @ExcelProperty(value = "是否自带渠道 Y-是 N-否")
    private String haveChannel;

    @ExcelProperty(value = "是否自带接收组 Y-是 N-否")
    private String haveGroup;

    @ExcelProperty(value = "是否自带消息模板 Y-是 N-否")
    private String haveTemplate;

    @ExcelProperty(value = "是否启用 Y-启用 N-停用")
    private String isEnabled;

    @ExcelIgnore
    private String isDeleted;

    @ExcelProperty(value = "创建人")
    private String creator;

    @ExcelIgnore
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date gmtCreated;

    @ExcelProperty(value = "更新人")
    private String modifier;

    @ExcelIgnore
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date gmtModified;

}
